package login.Model.service;

import login.Model.dao.UserDao;

/**
 * 业务逻辑
 */

public class UserService {
    //判断用户名是否存在
    public static Boolean exit(String name) throws Exception {
        return UserDao.exit(name);
    }

    //判断用户名与密码对应关系
    public static Boolean Judge(String name,String pwd) throws Exception{
        return UserDao.Judge(name,pwd);
    }

    //信息找回用户名或密码信息验证
    public static Boolean judgeInformation(String name,String direction,String phase,String postbox,String phoneNumber) throws Exception {
        return UserDao.judgeInformation(name, direction, phase, postbox, phoneNumber);
    }

    //邮箱找回用户名或密码信息验证
    public static Boolean judgeMailbox(String name,String postbox) throws Exception {
        return UserDao.judgeMailbox(name,postbox);
    }

    public static String getInformation(String name)throws Exception{
        return UserDao.getInformation(name);
    }


}
